/* Layout */
import Layout from '@/layout'
// import { Message } from 'element-ui'

// 动态路由
export const asyncRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: '/home',
    meta: { title: '工作台', icon: 'nav_home' },
    children: [{
      path: 'home',
      name: 'Home',
      component: () => import('@/views/home/index'),
      meta: { title: '工作台', affix: true, icon: 'nav_gongzuotai' }
    }]
  },
  {
    path: '/profile',
    component: Layout,
    redirect: '/profile/index',
    hidden: true,
    meta: { title: '个人中心' },
    children: [
      {
        path: 'index',
        component: () => import('@/views/profile/index'),
        name: 'Profile',
        meta: { title: '个人中心', icon: 'user' }
      }
    ]
  },
  {
    path: '/noticeList',
    component: Layout,
    redirect: '/noticeList/noticeList',
    meta: { title: '通知列表', icon: 'nav_tongzhi', serveName: 'noticeList' },
    children: [{
      path: 'noticeList',
      name: 'NoticeList',
      component: () => import('@/views/notice/noticeList/index'),
      meta: { title: '通知列表', serveName: 'NoticeList' }
    }, {
      path: 'noticeDetail',
      name: 'NoticeDetail',
      hidden: true,
      component: () => import('@/views/notice/noticeDetail/index'),
      meta: { title: '通知详情', activeMenu: '/noticeList/noticeList' }
    }]
  },
  {
    path: '/vipList',
    component: Layout,
    redirect: '/vipList/vipList',
    meta: { title: '会员管理', icon: 'nav_viplist', serveName: 'vipList' },
    children: [
      {
        path: 'vipList',
        name: 'VipList',
        component: () => import('@/views/vipList/index'),
        meta: { title: '会员列表', serveName: 'VipList' }
      },
      {
        path: 'vipDetails',
        name: 'VipDetails',
        hidden: true,
        component: () => import('@/views/vipCard/vipDetails/index'),
        meta: { title: '会员详情', serveName: 'VipDetails' }
      },
      {
        path: 'groupList',
        name: 'GroupList',
        component: () => import('@/views/group/groupList/index'),
        meta: { title: '团体会员列表', serveName: 'GroupList' }
      },
      {
        path: 'groupOpen',
        name: 'GroupOpen',
        component: () => import('@/views/group/groupOpen/index'),
        meta: { title: '团体会员开通', serveName: 'GroupOpen' },
        hidden: true
      },
      {
        path: 'groupDetails',
        name: 'GroupDetails',
        hidden: true,
        component: () => import('@/views/group/groupDetails/index'),
        meta: { title: '团体详情' }
      },
      {
        path: 'groupEdit',
        name: 'GroupEdit',
        hidden: true,
        component: () => import('@/views/group/groupEdit/index'),
        meta: { title: '团体会员编辑' }
      },
      {
        path: 'memberInOutRecord',
        name: 'MemberInOutRecord',
        component: () => import('@/views/ticket/memberInOutRecord/index'),
        meta: { title: '出入场记录', serveName: 'MemberInOutRecord' }
      },
      {
        path: 'associationList',
        name: 'AssociationList',
        component: () => import('@/views/vipList/associationList/index'),
        meta: { title: '手环关联记录', serveName: 'AssociationList' }
      }
    ]
  },
  {
    path: '/orienteering',
    component: Layout,
    redirect: '/orienteering/order',
    meta: { title: '专项卡管理', icon: 'nav_special', serveName: 'SpecialCardOrderList' },
    children: [
      {
        path: 'SpecialCardList',
        name: 'SpecialCardList',
        component: () => import('@/views/orienteering/orienteering_card'),
        meta: { title: '专项卡', serveName: 'SpecialCardListByVenue' }
      },
      {
        path: 'OrienteeringOrder',
        name: 'OrienteeringOrder',
        component: () => import('@/views/orienteering/order/index.vue'),
        meta: { title: '专项卡订单', serveName: 'SpecialCardOrderList' }
      },
      {
        path: 'OrienteeringRecord',
        name: 'OrienteeringRecord',
        component: () => import('@/views/orienteering/saleRecord'),
        meta: { title: '专项卡销售明细', serveName: 'SpecialCardSellInfo' }
      }
    ]
  },
  {
    path: '/areaSell',
    component: Layout,
    redirect: '/areaSell/areaReserve',
    meta: { title: '场地售卖', icon: 'nav_changdishoumai', serveName: 'areaSell' },
    children: [{
      path: 'areaReserve',
      name: 'AreaReserve',
      component: () => import('@/views/areaSell/areaReserve/index'),
      meta: { title: '场地预定', serveName: 'AreaReserve' }
    }, {
      path: 'orderList',
      name: 'OrderList',
      component: () => import('@/views/areaSell/orderList/index'),
      meta: { title: '订场订单', serveName: 'OrderList' }
    }, {
      path: 'reserveList',
      name: 'ReserveList',
      component: () => import('@/views/areaSell/reserveList/index'),
      meta: { title: '预定列表' }
    }, {
      path: 'defaultReserveList',
      name: 'DefaultReserveList',
      component: () => import('@/views/areaSell/defaultReserveList/index'),
      meta: { title: '固定预定列表', serveName: 'DefaultReserveList' }
    }
    ]
  },
  {
    path: '/venueArea',
    component: Layout,
    redirect: '/venueArea/areaVenue',
    meta: { title: '场区场地管理', icon: 'nav_changdiguanli', serveName: 'venueArea' },
    children: [
      {
        path: 'projectList',
        name: 'ProjectList',
        component: () => import('@/views/project/projectList/index'),
        meta: { title: '运动项目', serveName: 'ProjectList' }
      },
      {
        path: 'areaVenue',
        name: 'AreaVenue',
        component: () => import('@/views/venueArea/areaVenue/index'),
        meta: { title: '场区场地', serveName: 'AreaVenue' }
      },
      {
        path: 'venuePrice',
        name: 'VenuePrice',
        component: () => import('@/views/venueArea/venuePrice/venuePrice/index'),
        meta: { title: '场地定价', serveName: 'VenuePrice' }
      }, {
        path: 'venuePriceList',
        name: 'VenuePriceList',
        hidden: true,
        component: () => import('@/views/venueArea/venuePrice/venuePriceList/index'),
        meta: { title: '查看定价列表', activeMenu: '/venueArea/venuePrice/venuePrice' }
      }, {
        path: 'venueOptions',
        name: 'VenueOptions',
        component: () => import('@/views/venueArea/venueOptions/venueOptions/index'),
        meta: { title: '场地关联列表', serveName: 'VenueOptions' }
      }, {
        path: 'venueOptionAdd',
        name: 'VenueOptionAdd',
        component: () => import('@/views/venueArea/venueOptions/venueOptionAdd/index'),
        hidden: true,
        meta: { title: '场地关联配置' }
      },
      {
        path: 'projectAdd',
        name: 'ProjectAdd',
        hidden: true,
        component: () => import('@/views/project/projectAdd/index'),
        meta: { title: '新增项目', activeMenu: '/project/projectList' }
      }]
  },
  {
    path: '/ticket',
    component: Layout,
    redirect: '/ticket/ticketList',
    meta: { title: '门票管理', icon: 'nav_menpiao', serveName: 'ticket' },
    children: [{
      path: 'ticketList',
      name: 'TicketList',
      component: () => import('@/views/ticket/ticketList/ticketList/index'),
      meta: { title: '门票列表', serveName: 'TicketList' }
    },
    {
      path: 'ticketAdd',
      name: 'TicketAdd',
      hidden: true,
      component: () => import('@/views/ticket/ticketList/ticketAdd/index'),
      meta: { title: '新增门票', activeMenu: '/ticket/ticketList/ticketList' }
    },
    {
      path: 'ticketDetail',
      name: 'TicketDetail',
      hidden: true,
      component: () => import('@/views/ticket/ticketList/ticketDetail/index'),
      meta: { title: '查看门票', activeMenu: '/ticket/ticketList/ticketList' }
    }, {
      path: 'ticketSell',
      name: 'TicketSell',
      component: () => import('@/views/ticket/ticketSell/index'),
      meta: { title: '门票售卖', serveName: 'TicketSell' }
    },
    {
      path: 'ticketOrder',
      name: 'TicketOrder',
      component: () => import('@/views/ticket/ticketOrder/index'),
      meta: { title: '门票订单', serveName: 'TicketOrder' }
    },
    {
      path: 'ticketOrderDetail',
      name: 'ticketOrderDetail',
      component: () => import('@/views/ticket/ticketOrder/orderDetail/index'),
      hidden: true,
      meta: { title: '订单详情' }
    },
    {
      path: 'checkTicketHistory',
      name: 'CheckTicketHistory',
      component: () => import('@/views/ticket/checkTicketHistory/index'),
      meta: { title: '门票销售明细', serveName: 'CheckTicketHistory' }
    },
    {
      path: 'overtime',
      name: 'Overtime',
      component: () => import('@/views/chargeRules/overtime/index'),
      meta: { title: '超时计费规则', serveName: 'overtime' }
    }
    ]
  },
  {
    path: '/combo',
    component: Layout,
    redirect: '/combo/comboSell',
    meta: { title: '套餐管理', icon: 'nav_taocangl', serveName: 'Combo' },
    children: [
      {
        path: 'comboList',
        name: 'ComboList',
        component: () => import('@/views/combo/comboList/index.vue'),
        meta: { title: '套餐配置', serveName: 'MealsListByVenue' }
      },
      {
        path: 'comboAdd',
        name: 'ComboAdd',
        hidden: true,
        component: () => import('@/views/combo/comboList/comboAdd/index'),
        meta: { title: '新增套餐' }
      },
      {
        path: 'comboDetail',
        name: 'comboDetail',
        component: () => import('@/views/combo/comboDetail/index'),
        hidden: true,
        meta: { title: '套餐详情' }
      },
      {
        path: 'comboSell',
        name: 'ComboSell',
        component: () => import('@/views/combo/comboSell/index'),
        meta: { title: '套餐售卖', serveName: 'ComboSell' }
      }, {
        path: 'comboOrderList',
        name: 'ComboOrderList',
        component: () => import('@/views/combo/comboOrderList/index'),
        meta: { title: '订单列表', serveName: 'ComboOrderList' }
      },
      {
        path: 'salesRecord',
        name: 'salesRecord',
        component: () => import('@/views/combo/salesRecord/index'),
        meta: { title: '套餐销售明细', serveName: 'salesRecord' }
      },
      // {
      //   path: 'comboTransfer',
      //   name: 'ComboTransfer',
      //   component: () => import('@/views/combo/comboTransfer/index'),
      //   meta: { title: '套餐转让', serveName: 'ComboTransfer' }
      // },
      {
        path: 'comboTransferHistory',
        name: 'ComboTransferHistory',
        component: () => import('@/views/combo/comboTransferHistory/index'),
        meta: { title: '套餐转让记录', serveName: 'ComboTransferHistory' }
      }]
  },
  {
    path: '/device',
    component: Layout,
    redirect: '/device/gate',
    meta: { title: '设备管理', icon: 'nav_shebei', serveName: 'device' },
    children: [{
      path: 'gate',
      name: 'Gate',
      component: () => import('@/views/device/gate/index'),
      meta: { title: '闸机管理', serveName: 'Gate' }
    },
    {
      path: 'devicec',
      name: 'Devicc',
      component: () => import('@/views/device/devicec/index'),
      meta: { title: '打印机管理', serveName: 'Devicc' }
    },
    {
      path: 'devicef',
      name: 'Devicf',
      component: () => import('@/views/device/devicef/index'),
      meta: { title: '灯控管理', serveName: 'Devicf' }
    },
    {
      path: 'devicei',
      name: 'Devici',
      component: () => import('@/views/device/devicei/index'),
      meta: { title: '摄像头管理', serveName: 'Devici' }
    },
    {
      path: 'devicek',
      name: 'Devicek',
      component: () => import('@/views/device/devicek/index'),
      meta: { title: '双目摄像头', serveName: 'Devicek' }
    }, {
      path: 'acquisitionManager',
      name: 'AcquisitionManager',
      component: () => import('@/views/device/acquisitionManager/index'),
      meta: { title: '采集仪管理', serveName: 'AcquisitionManager' }
    },
    {
      path: 'epidemicSite',
      name: 'EpidemicSite',
      component: () => import('@/views/device/epidemicSite/index'),
      meta: { title: '防疫站点管理', serveName: 'EpidemicSite' }
    }, {
      path: 'lowriskArea',
      name: 'LowriskArea',
      component: () => import('@/views/device/lowriskArea/index'),
      meta: { title: '场馆低免区域', serveName: 'EpidemicSite' }
    }, {
      path: 'deviceTicket',
      name: 'DeviceTicket',
      component: () => import('@/views/device/deviceTicket/index'),
      meta: { title: '自助机管理', serveName: 'deviceTicket' }
    }

    ]
  },

  {
    path: '/finance',
    component: Layout,
    redirect: '/finance/financeSettlement',
    meta: { title: '财务管理', icon: 'nav_caiwu', serveName: 'finance' },
    children: [
      {
        path: 'financeSettlement',
        name: 'FinanceSettlement',
        component: () => import('@/views/finance/financeSettlement/index'),
        meta: { title: '财务结算', serveName: 'FinanceSettlement' }
      },
      {
        path: 'financeCurrent',
        name: 'FinanceCurrent',
        component: () => import('@/views/finance/financeCurrent/index.vue'),
        meta: { title: '资金流水', serveName: 'financeCurrent' }
      },
      {
        path: 'financeDefaultSpend',
        name: 'FinanceDefaultSpend',
        component: () => import('@/views/finance/financeDefaultSpend/financeDefaultSpend/index'),
        meta: { title: '通用消费', serveName: 'FinanceDefaultSpend' }
      },
      {
        path: 'handlingFees',
        name: 'HandlingFees',
        component: () => import('@/views/finance/handlingFees/index'),
        meta: { title: '手续费订单', serveName: 'HandlingFees' }
      },
      {
        path: 'orderRefundRecord',
        name: 'OrderRefundRecord',
        component: () => import('@/views/finance/refundRecord'),
        meta: { title: '退款记录', serveName: 'OrderRefundRecord' }
      },
      {
        path: 'financeDefaultSpendAdd',
        name: 'FinanceDefaultSpendAdd',
        hidden: true,
        component: () => import('@/views/finance/financeDefaultSpend/financeDefaultSpendAdd/index'),
        meta: { title: '新增通用消费', activeMenu: '/finance/financeDefaultSpend/financeDefaultSpend' }
      }
    ]
  },
  {
    path: '/integral',
    component: Layout,
    redirect: '/integral/integralList',
    meta: { title: '积分商城', icon: 'nav_shangpin', serveName: 'Integral' },
    children: [{
      path: 'integralList',
      name: 'IntegralList',
      component: () => import('@/views/integral/shop/index'),
      meta: { title: '商品管理', serveName: 'IntegralList' }
    }, {
      path: 'integralAdd',
      name: 'IntegralAdd',
      hidden: true,
      component: () => import('@/views/integral/shop/add.vue'),
      meta: { title: '新增商品' }
    }, {
      path: 'integralOrder',
      name: 'IntegralOrder',
      component: () => import('@/views/integral/order/index'),
      meta: { title: '兑换订单', serveName: 'IntegralOrder' }
    }, {
      path: 'integraldetailed',
      name: 'Integraldetailed',
      component: () => import('@/views/integral/detailed/index'),
      meta: { title: '积分明细', serveName: 'Integraldetailed' }
    }]
  },
  {
    path: '/goodsmanager',
    component: Layout,
    redirect: '/goodsmanager/managerList',
    meta: { title: '商品管理', icon: 'nav_shangpin', serveName: 'goodsmanager' },
    children: [{
      path: 'managerList',
      redirect: '/goodsmanager/managerList/managerList',
      component: () => import('@/views/goodsmanager/managerList/index'),
      meta: { title: '商品管理' },
      children: [{
        path: 'managerList',
        name: 'ManagerList',
        component: () => import('@/views/goodsmanager/managerList/managerList/index'),
        meta: { title: '商品管理', serveName: 'ManagerList' }
      }, {
        path: 'goodsAdd',
        name: 'GoodsAdd',
        hidden: true,
        component: () => import('@/views/goodsmanager/managerList/goodsAdd/index'),
        meta: { title: '新增商品' }
      }]
    }, {
      path: 'goodsSale',
      name: 'GoodsSale',
      component: () => import('@/views/goodsmanager/goodsSale/index'),
      meta: { title: '商品售卖', serveName: 'GoodsSale' }
    }, {
      path: 'orderManager',
      name: 'OrderManager',
      component: () => import('@/views/goodsmanager/orderManager/index'),
      meta: { title: '订单管理', serveName: 'OrderManager' }
    }
    ]
  },
  {
    path: '/stockManager',
    component: Layout,
    redirect: '/stockManager/putStorageManager',
    meta: { title: '库存管理', icon: 'nav_kucun', serveName: 'stockManager' },
    children: [{
      path: 'putStorageManager',
      name: 'PutStorageManager',
      component: () => import('@/views/stockManager/putStorageManager/index'),
      meta: { title: '入库管理', serveName: 'PutStorageManager' }
    }, {
      path: 'allotManager',
      name: 'AllotManager',
      component: () => import('@/views/stockManager/allotManager/index'),
      meta: { title: '调拨管理', serveName: 'AllotManager' }
    }, {
      path: 'allotStorageManager',
      name: 'AllotStorageManager',
      component: () => import('@/views/stockManager/allotStorageManager/index'),
      meta: { title: '调拨入库管理', serveName: 'AllotStorageManager' }
    }, {
      path: 'destoryManager',
      name: 'DestoryManager',
      component: () => import('@/views/stockManager/destoryManager/index'),
      meta: { title: '销毁管理', serveName: 'DestoryManager' }
    }]
  },
  {
    path: '/offlinecourses',
    component: Layout,
    redirect: '/offlinecourses/offlinecoursesList',
    meta: { title: '课程管理', icon: 'nav_xianxiake', serveName: 'offlinecourses' },
    children: [
      {
        path: 'individualLessonList',
        name: 'IndividualLessonList',
        component: () => import('@/views/offlinecourses/personalCourse'),
        meta: { title: '私教课', serveName: 'IndividualLessonList' }
      },
      {
        path: 'offlinecoursesList',
        name: 'OfflinecoursesList',
        component: () => import('@/views/offlinecourses/conventionCourse'),
        meta: { title: '常规课', serveName: 'OfflinecoursesList' }
      },
      {
        path: 'onlineCoursesList',
        name: 'OnlineCoursesList',
        component: () => import('@/views/onlineCourses/onlineCoursesList/index'),
        meta: { title: '视频课', serveName: 'OnlineCoursesList' }
      },
      {
        path: 'studentAdmin',
        name: 'StudentAdmin',
        component: () => import('@/views/offlinecourses/studentAdmin'),
        meta: { title: '学员管理', serveName: 'StudentAdmin' }
      },
      {
        path: 'classRecord',
        name: 'ClassRecord',
        component: () => import('@/views/offlinecourses/classRecord'),
        meta: { title: '课时记录', serveName: 'CourseTimeStuList' }
      },
      {
        path: 'coachManagementList',
        name: 'CoachManagementList',
        component: () => import('@/views/offlinecourses/coachManagement'),
        meta: { title: '教练管理', serveName: 'CoachManagementList' }
      },
      {
        path: 'scheduleCard',
        name: 'ScheduleCard',
        hidden: true,
        component: () => import('@/views/offlinecourses/scheduleCard/index'),
        meta: { title: '课程表', serveName: 'ScheduleCard' }
      },
      {
        path: 'offlinecoursesOrder',
        name: 'OfflinecoursesOrder',
        component: () => import('@/views/offlinecourses/offlinecoursesOrder/index'),
        meta: { title: '订单管理', serveName: 'offlinecoursesOrder' }
      },
      {
        path: 'scheduleCardAdd',
        name: 'ScheduleCardAdd',
        hidden: true,
        component: () => import('@/views/offlinecourses/scheduleCardAdd/index'),
        meta: { title: '排课' }
      },
      {
        path: 'scheduleCardEdit',
        name: 'ScheduleCardEdit',
        hidden: true,
        component: () => import('@/views/offlinecourses/scheduleCardEdit/index'),
        meta: { title: '排课' }
      },
      {
        path: 'offlinecoursesRefund',
        name: 'OfflinecoursesRefund',
        component: () => import('@/views/offlinecourses/offlinecoursesRefund/index'),
        meta: { title: '退课记录', serveName: 'OfflinecoursesRefund' }
      },
      // {
      //   path: 'makeUpLessons',
      //   name: 'MakeUpLessons',
      //   component: () => import('@/views/offlinecourses/makeUpLessons/index'),
      //   meta: { title: '缺课补课管理', serveName: 'MakeUpLessons' }
      // },
      {
        path: 'onlineCoursesVideoOrder',
        name: 'OnlineCoursesVideoOrder',
        hidden: true,
        component: () => import('@/views/onlineCourses/onlineCoursesVideoOrder/index'),
        meta: { title: '视频管理', serveName: 'OnlineCoursesVideoOrder' }
      },
      {
        path: 'onlineCoursesAdd',
        name: 'OnlineCoursesAdd',
        hidden: true,
        component: () => import('@/views/onlineCourses/onlineCoursesAdd/index'),
        meta: { title: '新增课程' }
      }
    ]
  },
  // {
  //   path: '/onlineCourses',
  //   component: Layout,
  //   redirect: '/onlineCourses/onlineCoursesList',
  //   meta: { title: '线上课程管理', icon: 'nav_xianshangke', serveName: 'onlineCourses' },
  //   children: [
  //     {
  //       path: 'onlineCoursesOrder',
  //       name: 'OnlineCoursesOrder',
  //       component: () => import('@/views/onlineCourses/onlineCoursesOrder/index'),
  //       meta: { title: '订单管理', serveName: 'OnlineCoursesOrder' }
  //     }
  //   ]
  // },
  {
    path: '/activityManagement',
    component: Layout,
    redirect: '/activityManagement/activityManagementList',
    meta: { title: '活动管理', icon: 'nav_huodong', serveName: 'activityManagement' },
    children: [{
      path: 'activityManagementList',
      name: 'ActivityManagementList',
      component: () => import('@/views/activityManagement/activityManagementList/index'),
      meta: { title: '活动管理', serveName: 'ActivityManagementList' }
    }, {
      path: 'activityManagementAdd',
      name: 'ActivityManagementAdd',
      hidden: true,
      component: () => import('@/views/activityManagement/activityManagementList/add'),
      meta: { title: '新增活动' }
    }, {
      path: 'registration',
      name: 'Registration',
      component: () => import('@/views/activityManagement/registration/index'),
      meta: { title: '报名订单', serveName: 'Registration' }
    }, {
      path: 'signRecordList',
      name: 'SignRecordList',
      component: () => import('@/views/activityManagement/signRecordList/index'),
      meta: { title: '报名记录', serveName: 'SignRecordList' }
    }]
  },
  {
    path: '/application',
    component: Layout,
    redirect: '/application/applicationCenter',
    meta: { title: '应用', icon: 'nav_yingyong', serveName: 'Application' },
    children: [
      {
        path: 'applicationCenter',
        name: 'ApplicationCenter',
        component: () => import('@/views/application/applicationCenter/index'),
        meta: { title: '应用中心', serveName: 'ApplicationCenter' }
      },
      {
        path: 'Portrayal',
        name: 'Portrayal',
        hidden: true,
        component: () => import('@/views/application/portrayal'),
        meta: { title: '会员画像营销' }
      },
      {
        path: 'PortrayalDetail',
        name: 'PortrayalDetail',
        hidden: true,
        component: () => import('@/views/application/portrayal/components/PortrayalMem/Detail.vue'),
        meta: { title: '画像详情' }
      },
      {
        path: 'DirectedCoupom',
        name: 'DirectedCoupom',
        hidden: true,
        component: () => import('@/views/application/SendCoupomRecord'),
        meta: { title: '定向发券' }
      },
      {
        path: 'wonderfulMoments',
        name: 'WonderfulMoments',
        hidden: true,
        component: () => import('@/views/application/wonderfulMoments/index'),
        meta: { title: '精彩瞬间', serveName: 'WonderfulMoments' }
      },
      {
        path: 'ordering',
        name: 'Ordering',
        hidden: true,
        component: () => import('@/views/application/ordering/index'),
        meta: { title: '点餐管理', serveName: 'Ordering' }
      },
      {
        path: 'orderingDetail',
        name: 'OrderingDetail',
        component: () => import('@/views/goodsmanager/orderingDetail/index'),
        hidden: true,
        meta: { title: '点餐详情', activeMenu: '/goodsmanager/ordering' }
      },
      {
        path: 'dinnerTable',
        name: 'DinnerTable',
        hidden: true,
        component: () => import('@/views/goodsmanager/dinnerTable/index'),
        meta: { title: '餐区餐桌' }
      },
      {
        path: 'orderDinner',
        name: 'OrderDinner',
        hidden: true,
        component: () => import('@/views/goodsmanager/orderDinner/index'),
        meta: { title: '点餐管理' }
      },
      {
        path: 'varietySet',
        name: 'VarietySet',
        hidden: true,
        component: () => import('@/views/application/ordering/components/varietySet'),
        meta: { title: '点餐设置' }
      },
      {
        path: 'varietyAdd',
        name: 'VarietyAdd',
        hidden: true,
        component: () => import('@/views/application/ordering/components/varietyAdd.vue'),
        meta: { title: '新增菜品' }
      },
      {
        path: 'groupBuy',
        name: 'Meituan',
        component: () => import('@/views/third/meituan/index'),
        meta: { title: '美团' },
        hidden: true
      },
      {
        path: 'tiktok',
        name: 'Tiktok',
        component: () => import('@/views/third/tiktok/index'),
        meta: { title: '抖音' },
        hidden: true
      },
      {
        path: 'invoice',
        name: 'Invoice',
        component: () => import('@/views/application/invoice/index'),
        meta: { title: '发票开具', serveName: 'Invoice' },
        hidden: true
      },
      {
        path: 'currency',
        name: 'Currency',
        component: () => import('@/views/application/currency/index'),
        meta: { title: '兑币机管理', serveName: 'Currency' },
        hidden: true
      },
      {
        path: 'luckDraw',
        name: 'LuckDraw',
        component: () => import('@/views/application/luckDraw/index.vue'),
        meta: { title: '抽奖活动', serveName: 'luckDraw' },
        hidden: true
      },
      {
        path: 'luckdrawPrizeList',
        name: 'LuckdrawPrizeList',
        hidden: true,
        component: () => import('@/views/application/luckDraw/components/LuckdrawPrizeList.vue'),
        meta: { title: '奖品列表' }
      },
      {
        path: 'spellSite',
        name: 'SpellSite',
        component: () => import('@/views/application/SpellSite'),
        meta: { title: '约球拼场' },
        hidden: true
      }
    ]
  },
  {
    path: '/lease',
    component: Layout,
    redirect: '/equipment/lease',
    meta: { title: '器材租赁', icon: 'nav_shangpin', serveName: 'Equipment' },
    children: [{
      path: 'lease',
      name: 'Lease',
      component: () => import('@/views/equipment/lease'),
      meta: { title: ' 器材租赁', serveName: 'Lease' }
    },
    {
      path: 'leaseRecords',
      name: 'LeaseRecords',
      component: () => import('@/views/equipment/leaseRecords'),
      meta: { title: '租赁订单', serveName: 'LeaseRecords' }
    },
    {
      path: 'leaseManage',
      name: 'LeaseManage',
      component: () => import('@/views/equipment/leaseManage'),
      meta: { title: '器材管理', serveName: 'LeaseManage' }
    }
    ]
  },
  {
    path: '/escort',
    component: Layout,
    redirect: '/escort/escortPageList',
    meta: { title: '伴游卡', icon: 'nav_shangpin', serveName: 'Escort' },
    children: [
      {
        path: 'escortPageList',
        name: 'EscortPageList',
        component: () => import('@/views/escort/list'),
        meta: { title: '伴游卡管理', serveName: 'EscortPageList' }
      },
      {
        path: 'escortOrderList',
        name: 'EscortOrderList',
        component: () => import('@/views/escort/orderList'),
        meta: { title: '伴游卡订单', serveName: 'EscortOrderList' }
      }
    ]
  },
  {
    path: '/statistics',
    component: Layout,
    redirect: '/statistics/businessStatistics',
    meta: { title: '统计分析', icon: 'nav_tongji', serveName: 'statistics' },
    children: [{
      path: 'businessStatistics',
      name: 'BusinessStatistics',
      component: () => import('@/views/statistics/businessStatistics/statistic/index'),
      meta: { title: '营业结算统计', serveName: 'BusinessStatistics' }
    }, {
      path: 'businessStatisticsEcharts',
      name: 'BusinessStatisticssEcharts',
      component: () => import('@/views/statistics/businessStatistics/charts/echarts'),
      meta: { title: '营业结算图表统计', serveName: 'BusinessStatisticssEcharts' }
    }, {
      path: 'businessStatisticsSummary',
      name: 'BusinessStatisticssSummary',
      component: () => import('@/views/statistics/businessStatistics/summary/summary'),
      meta: { title: '营业分类汇总', serveName: 'BusinessStatisticssSummary' }
    }, {
      path: 'transactionRecord',
      name: 'TransactionRecord',
      component: () => import('@/views/statistics/memberStatistics'),
      meta: { title: '会员相关统计', serveName: 'TransactionRecord' }
    }, {
      path: 'SpecialCardStatistics',
      name: 'SpecialCardStatistics',
      component: () => import('@/views/statistics/orienteering_card'),
      meta: { title: '专项卡相关统计', serveName: 'SpecialCardStatisticsByVenue' }
    }, {
      path: 'setmealSales',
      name: 'SetmealSales',
      component: () => import('@/views/statistics/setmealStatistics/index'),
      meta: { title: '套餐相关统计', serveName: 'SetmealSales' }
    },
    {
      path: 'productDistribution',
      name: 'ProductDistribution',
      component: () => import('@/views/statistics/productDistribution/index'),
      meta: { title: '产品销售明细', serveName: 'CourseAndSite' }
    }, {
      path: 'ticketSales',
      name: 'TicketSales',
      component: () => import('@/views/statistics/ticketStatistics/index'),
      meta: { title: '门票相关统计', serveName: 'TicketSales' }
    },
    {
      path: 'commoditySales',
      name: 'CommoditySales',
      component: () => import('@/views/statistics/commodityStatistics/index'),
      meta: { title: '商品相关统计', serveName: 'CommoditySales' }
    },
    {
      path: 'curriculumSales',
      name: 'CurriculumRela',
      component: () => import('@/views/statistics/curriculumStatistics/index'),
      meta: { title: '课程相关统计', serveName: 'CurriculumRela' }
    }, {
      path: 'activitySales',
      name: 'ActivityStatistics',
      component: () => import('@/views/statistics/activityStatistics/index'),
      meta: { title: '活动相关统计', serveName: 'ActivityStatistics' }
    },
    {
      path: 'fieldStatisticsDetail',
      name: 'FieldStatisticsDetail',
      component: () => import('@/views/statistics/fieldStatistics/fieldStatisticsDetail/index'),
      meta: { title: '订场相关统计', serveName: 'FieldStatisticsDetail' }
    }, {
      path: 'devicej',
      name: 'Devicj',
      component: () => import('@/views/statistics/devicej/index'),
      meta: { title: '人流分析', serveName: 'Devicj' }
    },
    {
      path: 'devicejs',
      name: 'Devicjs',
      component: () => import('@/views/statistics/devicej/echarts'),
      hidden: true,
      meta: { title: '人流分析图表统计' }
    }]
  }
]
